<?php
/**
 * Hello Controller for Hello World Component
 * 
 * @package    Joomla.Tutorials
 * @subpackage Components
 * @link http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_4
 * @license		GNU/GPL
 */

// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

require_once( JPATH_COMPONENT.DS. 'views' .DS. 'comments' . DS . 'view.html.php' );

class TargetsControllerComments extends TargetsController
{
	/**
	 * constructor (registers additional tasks to methods)
	 * @return void
	 */
	
	function __construct()
	{
		parent::__construct();
		
		#$this->addViewPath(JPATH_COMPONENT.DS.'views');
		
		$model = $this->getModel('target');	
		$view  = $this->getView('comments');	
		$view->setModel($model);		
		
		#$f = fopen('/tmp/test2.txt', 'w');
		#fwrite($f, print_r($view, true));
		#fclose($f);		
	}
}